// 封装详情相关数据
import request  from "@/utils/request";

// 获取商品详情数据
export const getGoodsDetailAPI = (id) => {
    return request.get(`/goods`, { params: {id}
        });
}

// 获取热榜数据
export const getHotListAPI = (id, type, limit = 3) => {
    return request.get(`/goods/hot`,{ params  : { id, type, limit}});
}